﻿using ZL.WeChatCard.Entity;
using ZL.WeChatCard.Entity.EasyUse;
using ZL.WeChatCard.Service.Base;
using ZL.WeChatCard.Service.InterFace;

namespace ZL.WeChatCard.Service.EasyUse
{
    public class PaymentService: ServiceBase, IPaymentService
    {
        public AccInfo GetNo(string openid)
        {
            var url = $"{server}/Api/EasyUse/GetNo?openid={openid}";
            AccInfo scc = httpClient.HttpGet<AccInfo>(url, Identity);
            return scc;
        }

        public AccInfoResponse GetAllAccInfo(string openid)
        {
            var url = $"{server}/Api/EasyUse/GetAllAccInfo?openid={openid}";
            AccInfoResponse scc = httpClient.HttpGet<AccInfoResponse>(url, Identity);
            return scc;
        }
    }
}
